﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.IO;
namespace ChessServises
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IChessService
    {
        [OperationContract]
        [WebInvoke(UriTemplate = "NewGame")]
        int CreateGame(Guid creatorId);

        [WebGet(UriTemplate = "NewUser/{userName}")]
        Guid CreateUser(string userName);

        [WebInvoke(UriTemplate = "GetGame")]
        Stream GetGameTable(GetTableParameters parameters);

        [WebInvoke(Method = "POST", UriTemplate = "MakeMove")]
        void MakeMove(Move move);

        [WebGet(UriTemplate = "Games")]
        List<int> GetTableIds();
    }
}
